<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .red{
            background-color: red;
        }
    </style>
</head>
<body>

<div id="app">
     <div :title="title" :class="{red:isred}" :style="{fontSize:bigFont}">鼠标提示</div>
     <div>
        <a :href="href">百度一下</a>
     </div>
     <button v-on:click="change()">改变颜色</button>
     <div>
        <img :src="url"/>
     </div>
</div>

</body>
<script src="./node_modules/vue/dist/vue.js"></script>
<script>
    new Vue({
        el: "#app",
        data:{
            bigFont: "50px",
            message: "<a href='#'>百度一下</a>",
            title:"谢谢你的关注！",
            isred:true,
            href:"www.baidu.com",
            url:"https://ovopark.oss-cn-hangzhou.aliyuncs.com/web/images/site_banner_ani_202302.png"
        },
        methods: {
            change(){
                return this.isred=!this.isred;
            }
        },
    })
</script>
</html>